package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ author:lin tingfeng
 * @ data:2021/9/13-1:02
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("request")
public class Request {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "stuid")
    private String stuid;
    @TableField(value = "name")
    private String name;
    @TableField(value = "problem")
    private String problem;
    @TableField(value = "date")
    private Date date;
    @TableField(value = "status")
    private String status;
    @TableField(value = "email")
    private String email;

    public Request( String stuid, String name, String problem, Date date, String status, String email) {
        this.stuid = stuid;
        this.name = name;
        this.problem = problem;
        this.date = date;
        this.status = status;
        this.email = email;
    }

}
